class CreateTeachers < ActiveRecord::Migration
  def self.up
    create_table :teachers do |t|
      t.string :name
      t.string :gender
      t.string :birthday
      t.string :qualification
      t.string :position
      t.string :phone
      t.string :degree
      t.string :duty
      t.string :fax
      t.string :email
      t.string :researchDirection
      t.string :department
      t.string :address
      t.text :description
      t.integer :level, :default => 0
    end
  end

  def self.down
    drop_table :teachers
  end
end
